from PyQt4.QtGui import QWidget, QLabel, QPixmap
from .rollers import DayRoller, DateRoller

class DayAndDate(QWidget):
	def __init__(self, *args, **kw):
		QWidget.__init__(self, *args, **kw)


		self.date_roller = DateRoller(self)
		self.date_roller.setGeometry(87, 12, 136 , 30)

		self.day_roller = DayRoller(self)
		self.day_roller.setGeometry(319, 12, 136 , 30)

		pic = QLabel(self)
		pic.setGeometry(0, 0, 394 , 58)
		path = "work/date_day_box.png"
		pic.setPixmap(QPixmap(path))

	def set_date(self):
		self.day_roller.set_day()
		self.date_roller.set_date()



